package com.htht.smartschool.util.config;

import java.sql.Types;

import org.hibernate.dialect.MySQLDialect;
import org.hibernate.type.StandardBasicTypes;
public class GeoMySQLDialect extends MySQLDialect{
   public GeoMySQLDialect () {   
         super();   
         //blob数据类型
         registerHibernateType(Types.LONGVARBINARY, StandardBasicTypes.BLOB.getName());  
         registerHibernateType(-1, StandardBasicTypes.STRING.getName());
     }  
}
